package com.mdx.rest.controller;

import com.mdx.api.entity.CommunityUser;
import com.mdx.api.service.CommunityUserService;
import com.mdx.api.util.ResultVo;
import com.mdx.rest.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : jiagang
 * @date : Created in 2021/11/16 11:00
 */
@RestController
@RequestMapping("/community/user")
public class MdxUserController extends BaseController {

    @Autowired
    private CommunityUserService userService;


    /**
     * 登录
     * @param communityUser
     * @return
     */
    @PostMapping("login")
    public ResultVo login(@RequestBody CommunityUser communityUser){
        return userService.login(communityUser);
    }

//    @PostMapping("img")
//    public Map<String,Object> getImg(){
//        VideoFrameUtil.getVideoFirstFrame()
//    }
}
